package com.atguigu.gulimall.order.config;

/*import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.alipay.api.CertAlipayRequest;
import com.alipay.api.AlipayConfig;
import com.alipay.api.domain.AlipayTradeFastpayRefundQueryModel;
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse;
import com.alipay.api.request.AlipayTradeFastpayRefundQueryRequest;
import com.alipay.api.FileItem;
import java.util.Base64;
import java.util.ArrayList;
import java.util.List;*/

public class AlipayTradeFastpayRefundQuery {

/*    public static void main(String[] args) throws AlipayApiException {
        String privateKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCPnmb3GsUoXxxHABhMXfs3hx0X7jB4QWnoUeZ2pAo3eVPJE/i8n2q6PPSy2ixnk5eGLG8rwLcH8pqAvk7mH2/0Fe63RyFcn2wnYD7/URYMgOLT5/86aCrkVo7A0xVS67nF1IPNOUOdW4y+MDqajFXWm1tqDAB6FSk30yUQBqQ/HAfSltS66gA3m4e9Gc6aJQYSQZpRVzE1r6VMzBj+H1p2jT9qLE1LcVW0pXxAGeIM5f0xj/KI9oKD4N7ooYRNo7mw940SsYJNdhg6m3KknvasYngtHRrWLzwflFaFgE2vb13ut/YZd988P8ZjJXjt+ZHC+o0ub2xt8ecQwsLqUHMJAgMBAAECggEAd+RuZF6OtDMh8gucPTQ/oY1DtlR7VgiVlwG3+NbcSI8aaMQpY51ZhXuZcy064ISPe8zgSZApu5LFdDBqwSUBWqxsicfxi9byfLSWIqHYXDvEH86OfH21QMUZitMr+/sZLJNKLCpfzZ89kQ/F/Hqmte8fkxnN1BySOi4jxIsm1h8WBad+vUw0PD+g6kGT8Rr+jLJCgT8qVXUZi+0VA7SiGev5ESibUTOikXQiIAa233HpueoyoJnvS4UjrMqPGa67NOMHLb5vf9LR6ObF8ttPokLMDFqkgAr3gwd2YEzu0NBdo77Iw/F6lBB6LErspbnxK4viZTVrjA9aQ/V10SSmOQKB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3kvncsucas2FFI5vtWDtRbQyUPpTS5qSdJ/FQqgXhUeEWIMSf93iWuRN5mimhQYJUEABWBfn8v55oXLqMPKT3Nx5MnhXyGXiLetOGk2hcBgDn0iSxrZVc2nt7+Un7Wz9J/s/ZUwoAII+pSEloSPXEE4eH4K+YzpT5EvCxAHgDd8TOD4gt2w6DJyzyxnJUPatkgVlZ4wIDAQAB";
        AlipayConfig alipayConfig = new AlipayConfig();
        alipayConfig.setServerUrl("https://openapi-sandbox.dl.alipaydev.com/gateway.do");
        alipayConfig.setAppId("9021000136682704");
        alipayConfig.setPrivateKey(privateKey);
        alipayConfig.setFormat("json");
        alipayConfig.setAlipayPublicKey(alipayPublicKey);
        alipayConfig.setCharset("UTF-8");
        alipayConfig.setSignType("RSA2");
        AlipayClient alipayClient = new DefaultAlipayClient(alipayConfig);
        AlipayTradeFastpayRefundQueryRequest request = new AlipayTradeFastpayRefundQueryRequest();
        AlipayTradeFastpayRefundQueryModel model = new AlipayTradeFastpayRefundQueryModel();
        model.setOutRequestNo("HZ01RF001");
        request.setBizModel(model);
        AlipayTradeFastpayRefundQueryResponse response = alipayClient.execute(request);
        System.out.println(response.getBody());
        if (response.isSuccess()) {
            System.out.println("调用成功");
        } else {
            System.out.println("调用失败");
            // sdk版本是"4.38.0.ALL"及以上,可以参考下面的示例获取诊断链接
            // String diagnosisUrl = DiagnosisUtils.getDiagnosisUrl(response);
            // System.out.println(diagnosisUrl);
        }
    }*/
}
